home *** CD-ROM | disk | FTP | other *** search
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- % Example of use of macros
- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-
- \magnification=\magstephalf
- \font\AnsFont=cmtt10 at 14pt
- \parskip=1pc
- \parindent=15pt
-
- \newcount\QuestionNumber
- \QuestionNumber=1
-
- \def\Question{\hangindent\parindent\ignorespaces\noindent\number
- \QuestionNumber.\space
- \advance\QuestionNumber by 1}
-
- \DoAnswerstrue
-
- \noindent{\bf With Answers:}
- \medskip
-
- \Question If all men are mortal, and Socrates is a man then
- \Ans{Socrates is mortal man, as well as a Greek man}.
-
- \Question Five time four equals \Ans{20.}
-
- \Question Mares eat \Ans{oats}, and does eat \Ans{oats}, and little
- lambs eat \Ans{ivy}. I would eat ivy too, \Ans{wouldn't you}?
-
- \DoAnswersfalse
-
- \QuestionNumber=1
- \bigskip
- \noindent{\bf Without Answers:}
- \medskip
-
- \Question If all men are mortal, and Socrates is a man then
- \Ans{Socrates is mortal man, as well as a Greek man}.
-
- \Question Five time four equals \Ans{20.}
-
- \Question Mares eat \Ans{oats}, and does eat \Ans{oats}, and little lambs
- eat \Ans{ivy}. A kid'll eat ivy too, \Ans{would you}?
-
- \bye
-